package com.canaan.business.service.inOutStock;

import java.util.List;
import com.canaan.business.domain.inOutStock.OutStockBill;

/**
 * 出库单Service接口
 *
 * @author canaan
 * @date 2025-03-29
 */
public interface IOutStockBillService {
    /**
     * 查询出库单
     *
     * @param id 出库单主键
     * @return 出库单
     */
    OutStockBill selectOutStockBillById(Long id);

    /**
     * 查询出库单列表
     *
     * @param outStockBill 出库单
     * @return 出库单集合
     */
    List<OutStockBill> selectOutStockBillList(OutStockBill outStockBill);

    /**
     * 新增出库单
     *
     * @param outStockBill 出库单
     * @return 结果
     */
    int insertOutStockBill(OutStockBill outStockBill);

    /**
     * 批量新增出库单
     *
     * @param outStockBillList 出库单列表
     * @return 结果
     */
    int batchInsertOutStockBill(List<OutStockBill> outStockBillList);

    /**
     * 修改出库单
     *
     * @param outStockBill 出库单
     * @return 结果
     */
    int updateOutStockBill(OutStockBill outStockBill);

    /**
     * 批量修改出库单
     *
     * @param outStockBillList 出库单列表
     * @return 结果
     */
    int batchUpdateOutStockBill(List<OutStockBill> outStockBillList);

    /**
     * 批量删除出库单
     *
     * @param ids 需要删除的出库单主键集合
     * @return 结果
     */
    int deleteOutStockBillByIds(Long[] ids);

    /**
     * 删除出库单信息
     *
     * @param id 出库单主键
     * @return 结果
     */
    int deleteOutStockBillById(Long id);

    /**
     * 查询出库单
     *
     * @param no 编号
     * @return 出库单
     */
    OutStockBill selectOutStockBillByNo(String no);

    /**
     * 批量删除出库单
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    int deleteOutStockBillByNos(String[] nos);

    /**
     * 删除出库单信息
     *
     * @param no 编号
     * @return 结果
     */
    int deleteOutStockBillByNo(String no);

    List<OutStockBill> selectOutStockBillByTrayNo(String no);
    List<OutStockBill> selectEmptyDestOutStockBill();
}
